//:Property.java
package book.test;
import java.util.*;
/**The first Thinking in Java example program.
 * List system information on current machine 
 * @author YangYang
 * @author http://www.yangyang.com
 * @version 1.0
 */
public class Property {
	/**Sole entry point to class & application
	 * @param args array of string arguments
	 * @return No return value
	 * @exception exceptions No exceptions thrown
	 */
	public static void main(String[] args) {
		System.out.println(new Date());
		Properties p=System.getProperties();
		p.list(System.out);
		System.out.println("---Memory Usage:");
		Runtime rt=Runtime.getRuntime();
		System.out.println("Total Memory = "+rt.totalMemory()
				+" Free Memory = "+rt.freeMemory());
	}

}///:-
